import Http from '@/common/http'

export default {

  getInfo: id => Http.get(`/chapter/${id}/info`),

  getConsults: (id, params = {}) => Http.get(`/chapter/${id}/consults`, params),

  getResources: id => Http.get(`/chapter/${id}/resources`),

  like: id => Http.post(`/chapter/${id}/like`),

  learning: (id, params) => Http.post(`/chapter/${id}/learning`, params)

}
